package com.tdkj.model.risevalue;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * XnkyQuotation2user entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "risevalue_plate_quotation_subscription")
public class BeanPlateQuotationSubscription extends BaseEntity implements java.io.Serializable {

	private BeanPlateQuotationCustom custom;
	private String phone;
	private String qq;
	private String qqgroup;
	private Timestamp jointime;
	private Timestamp deadline;
	
	private Timestamp buyTime;
	private BeanUser user;

	// Constructors

	/** default constructor */
	public BeanPlateQuotationSubscription() {
	}

	@ManyToOne(cascade={CascadeType.REFRESH},fetch = FetchType.LAZY)
	@JoinColumn(name = "priceId")
	public BeanPlateQuotationCustom getCustom() {
		return this.custom;
	}

	public void setCustom(BeanPlateQuotationCustom custom) {
		this.custom = custom;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getQq() {
		return this.qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getQqgroup() {
		return this.qqgroup;
	}

	public void setQqgroup(String qqgroup) {
		this.qqgroup = qqgroup;
	}

	public Timestamp getJointime() {
		return this.jointime;
	}

	public void setJointime(Timestamp jointime) {
		this.jointime = jointime;
	}

	public Timestamp getDeadline() {
		return this.deadline;
	}

	public void setDeadline(Timestamp deadline) {
		this.deadline = deadline;
	}

	public Timestamp getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "user_id")
	public BeanUser getUser() {
		return user;
	}

	public void setUser(BeanUser user) {
		this.user = user;
	}

}